package com.follow.pojo;


import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/**
 * Created by Administrator on 2020/9/24.
 */
@Data
public class TbUserVO {

    private Integer id;

    private String userId;

    private String userName;

    private String password;

    private Integer roleId;

    private String roleName;

    private Integer sex;

    private Integer age;

    //@DateTimeFormat前端传过来的String类型数据转换成Date类型存到数据库中
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    //@JsonFormat后端的Date类型数据转换成String类型数据传给前端
    @JsonFormat(pattern ="yyyy-MM-dd",timezone="GMT+8")
    private Date birthday;

    private  String phone;

    private String mail;

    private Integer departmentId;

    private String departmentName;

}
